#include <bits/stdc++.h>
using namespace std;

const int maxn = 1e5 + 5;

int a[maxn];

int main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    sort(a,a+n);
    int i,j;
    for (i = 0,j = 0; j < n; j++) {
        if (a[i] < a[j]) {
            i ++;
        }
    }
    cout << n-i << endl;
    return 0;
}
